package appapi.service;


import appapi.entity.mongo.MangoProjectDto;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.util.List;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/09/12 10:58
 */
public interface ProjectsRepository extends MongoRepository<MangoProjectDto, String> {
    @Query("{ 'projectName' : { $regex: ?0, $options: 'i' } }")
    List<MangoProjectDto> queryProjectByName(String projectName);
}
